﻿#ifndef EDITTRDPTESTCASE_H
#define EDITTRDPTESTCASE_H
#include <QWidget>
#include <Common/TRDP_modifyResult.h>
#include "ui_EditTRDPTestCase.h"
//#include"TRDPDataManager.h"
class EditTRDPTestCase : public QWidget
{
	Q_OBJECT

public:
    EditTRDPTestCase(QWidget *parent = nullptr);
	~EditTRDPTestCase();

	void connectAllSlots();

	void ShowComID();
//	TRDPDataManager dataManager;

    void OnComidListWdigetChange(QListWidgetItem* current);
	void OnPushbuttonVarientModifyClicked();
	void OnPushbuttonDeleteClicked();

    void ClearModifyResult();
    TRDP_ModifyResult GetTRDPModifyResult()const;
signals:
    void OnModifyFinish();
private slots:
    void on_pushButton_createProcedure_clicked();

private:
	void AddDataToListWidget(QListWidget* listWidget, const QList<QString>& listData);

    bool _isEdit = false ;
private:
	Ui::EditTRDPTestCaseClass ui;
//    QList<TRDP_ModifyResult> modifyVariateList;		//缓存编辑结果 需绑定comid，然后进行存储
    TRDP_ModifyResult modifyResult;
};

#endif
